package com.example.hello;

import com.example.hello.client.NavLink.BootstrapNavLinkState;
import com.vaadin.ui.AbstractComponent;

public class BootstrapNavLink extends AbstractComponent {

    public BootstrapNavLink() {
        this("");
    }

    public BootstrapNavLink(String text) {
        this(text, "");
    }

    public BootstrapNavLink(String text, String href) {
        this(text, href, "");
    }

    public BootstrapNavLink(String text, String href, String target) {
        setText(text);
        setHref(href);
        setTarget(target);
    }

    @Override
    public BootstrapNavLinkState getState() {
        return (BootstrapNavLinkState) super.getState();
    }

    public String getText() {
        return getState().getText();
    }

    public String getHref() {
        return getState().getHref();
    }

    public String getTarget() {
        return getState().getTarget();
    }

    public void setText(String text) {
        getState().setText(text);
    }

    public void setHref(String href) {
        getState().setHref(href);
    }

    public void setTarget(String target) {
        getState().setTarget(target);
    }

}